package com.shun.base.api;

import com.shun.base.dto.SysLoginLogAddDto;
import com.shun.base.dto.SysOperLogDto;
import com.shun.common.R;
import com.shun.common.RC;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 基础服务熔断方法
 * @author clever
 * @since 2021-09-29
 */
@Component
public class ShunBaseApiFallbackClient implements ShunBaseApi {

    @Override
    public R addSysLoginLog(SysLoginLogAddDto sysLoginLogDto) {
        return RC.FEIGN_FUSE_ERROR.toR();
    }

    @Override
    public R addSysOperLog(@RequestBody SysOperLogDto sysOperLogDto){return RC.FEIGN_FUSE_ERROR.toR();}
}
